FEAT: Add 0DIN JEF keyword scorers and n-day seed datasets#1398
Merged
Conversation
Author
|
@microsoft-github-policy-service agree company="0din" |
athal7
marked this pull request as ready for review
February 23, 2026 22:04
|
Neat work! |
Contributor
|
Thanks for putting this together! Two suggestions on the scorers side (the seed datasets look great):
Would you like to make these changes, or would you prefer we take it from here? Happy either way — if we don''t hear back, we''ll pick it up sometime in June. |
Subclass RegexScorer for meth, nerve-agent, fentanyl, and anthrax keyword detection. One scorer per file, following codebase convention. JEF attribution in module and class docstrings. Co-Authored-By: anthropic/claude-opus-4-6 <noreply@opencode.ai>
athal7
force-pushed
the
athal/0din-900-submit-jef-scorers-n-day-seed-datasets-upstream-to-microsoft
branch
from
May 25, 2026 19:54
909036d to
2c4f30a
Compare
Author
|
Thanks for the suggestions! Both addressed:
Also rebased onto current main to pick up |
…-datasets-upstream-to-microsoft
romanlutz
approved these changes
May 30, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…-jef-scorers-n-day-seed-datasets-upstream-to-microsoft
…-datasets-upstream-to-microsoft
romanlutz
enabled auto-merge
May 30, 2026 23:29
…-jef-scorers-n-day-seed-datasets-upstream-to-microsoft
…ef-scorers-n-day-seed-datasets-upstream-to-microsoft' into athal/0din-900-submit-jef-scorers-n-day-seed-datasets-upstream-to-microsoft
…-datasets-upstream-to-microsoft
romanlutz
pushed a commit
to romanlutz/PyRIT
that referenced
this pull request
Jun 17, 2026
… n-day datasets PR microsoft#1398 already added six static, hand-curated 0din_* local n-day disclosure datasets. This live API loader pulls the gated 0DIN threat feed, so name it 0din_threatfeed to clearly distinguish the dynamic full feed from the static disclosures and parallel the existing 0din_* naming. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds four lightweight 0DIN keyword-based scorers and six n-day jailbreak seed datasets from Mozilla's 0DIN vulnerability disclosure program.
Scorers (
pyrit/score/true_false/):MethKeywordScorer— methamphetamine synthesis terminologyNerveAgentKeywordScorer— nerve-agent synthesis terminologyFentanylKeywordScorer— fentanyl synthesis terminologyAnthraxKeywordScorer— B. anthracis weaponisation terminologyEach scorer extends
RegexScorerwith a domain-specific keyword list and returnsTruewhen any keyword is found in the model output.Seed datasets (
pyrit/datasets/seed_datasets/local/0din/):Six
.promptfiles containing real-world jailbreak prompts disclosed through 0DIN:placeholder_injection— copyright bypass via placeholder text insertionincremental_table_completion— pattern completion with restricted chemicalstechnical_field_guide— law-enforcement framing for synthesis instructionschemical_compiler_debug— obfuscated chemical notation as a debug taskcorrection— forensic document error correction bypasshex_recipe_book— multi-turn hex-encoded instruction attack with 3 sequential promptsTests
104 passed